Ext.define("Demo.model.sale.saleorderModel",{
	extend:"Ext.data.Model",
	alias:"widget.saleorderModel",
	fields:[{
		name:"loginState",type:'String'
	},{
		name:"createTime",type:'string'
	},{
		name:"cusNo",type:'String'
	},{
		name:"billDate",type:'String'
	},{
		name:"addressId",type:'int'
	},{
		name:"billNo",type:'String'
	},{
		name:"orderType",type:'String'
	},{
		name:"clientOrder",type:'string'
	},{
		name:"isTax",type:'int'
	},{
		name:"moneyType",type:'String'
	},{
		name:"billState",type:'int'
	},{
		name:"huiLv",type:'String'
	},{
		name:"bizMan",type:'String'
	},{
		name:"maker",type:'string'
	},{
		name:"permitter",type:'String'
	},{
		name:"ofProject",type:'String'
	},{
		name:"moneyGuis",type:'String'
	},{
		name:"receiveDate",type:'string'
	},{
		name:"auditState",type:'int'
	},{
		name:"auditTime",type:'String'
	}],
	//设定这两个类之间一对多的关系  
	hasMany:{  
			 model: 'sale.saleorderdetailModel',  
	         name : 'getSaleorderdetailModel',//如果不写这个name，可以通过t.students得到student的一个数据集合
	         autoLoad : false,
	         filterProperty: 'billNo'//关联的字段  
	} 
	
	
	
});
 